#include <stdio.h>
#include <inttypes.h>
#include "../header/ex3.6_altnames.h"

/* unknown why the PRId32 in inttypes.h could not be used in windows, so I define a fake one here so that the example can run. */
//#define PRId32 "d"

void ex3_6_altnames() {
	int32_t me32;

	me32 = 45933945;
	printf("First, assume int32_t is int: ");
	printf("me32 = %d\n", me32);
	printf("Next, let's not make any assumptions.\n");
	printf("Instead, use a \"macro\" from inputtypes.h: ");
	printf("me32 = %" PRId32 "\n", me32);
}
